/*    */ package com.zimbra.cs.service.mail;
/*    */ 
/*    */ import com.zimbra.common.service.ServiceException;
/*    */ import com.zimbra.common.soap.Element;
/*    */ import com.zimbra.common.soap.MailConstants;
/*    */ import com.zimbra.cs.session.WaitSetMgr;
/*    */ import com.zimbra.soap.ZimbraSoapContext;
/*    */ import java.util.Map;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class DestroyWaitSet
/*    */   extends MailDocumentHandler
/*    */ {
/*    */   public Element handle(Element request, Map<String, Object> context)
/*    */     throws ServiceException
/*    */   {
/* 49 */     ZimbraSoapContext zsc = getZimbraSoapContext(context);
/* 50 */     Element response = zsc.createElement(MailConstants.DESTROY_WAIT_SET_RESPONSE);
/* 51 */     return staticHandle(request, context, response);
/*    */   }
/*    */   
/*    */   public static Element staticHandle(Element request, Map<String, Object> context, Element response) throws ServiceException {
/* 55 */     ZimbraSoapContext zsc = getZimbraSoapContext(context);
/* 56 */     String waitSetId = request.getAttribute("waitSet");
/* 57 */     WaitSetMgr.destroy(zsc, zsc.getRequestedAccountId(), waitSetId);
/*    */     
/* 59 */     response.addAttribute("waitSet", waitSetId);
/* 60 */     return response;
/*    */   }
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/service/mail/DestroyWaitSet.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */